$("form[data-type=formAction]").submit(function(event) {
	event.preventDefault(); //阻止元素发生默认的行为（例如，当点击提交按钮时阻止对表单的提交）
	var target = event.target;
	var action = $(target).attr("action");

	$.post(action, $(target).serialize(), function(data){
		if (data.Ret == 0) {
			alert(data.Reason);
		} else {
			location.href = $(target).attr("form-rediret");
		}
	}, "json");
});